/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao04;

/**
 *
 * @author SDKW
 */
public class TopoGranulado extends AdicionalDecorator {

    public TopoGranulado(Base yogurtBase) {
        super(yogurtBase);
        System.out.println("Adicionando topo de granulado...");
        nome = "Topo de Granulado";
        preco = 0.75;
    }
    
    @Override
    public String getNome() {
        return super.getNome() + " com " + nome;
    }
    
    @Override
    public double getPreco() {
        return super.getPreco() + preco;
    }
    
}
